//
//  BPPaySelectView.m
//  BabyPhotograph
//
//  Created by cesh on 2017/2/14.
//  Copyright © 2017年 cesh. All rights reserved.
//

#import "BPPaySelectView.h"

@implementation BPPaySelectView

- (void)awakeFromNib {
    [super awakeFromNib];
    
    //添加点击背景消失的方法
    UITapGestureRecognizer *remove = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(remove)];
    [self addGestureRecognizer:remove];
    
}
- (void)remove {
    [self removeFromSuperview];
}
- (IBAction)wechatBtn:(id)sender {
    [SVProgressHUD showInfoWithStatus:@"暂不支持微信支付，请前往微信公众号“贝贝摄影达人”下单"];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [SVProgressHUD dismiss];
    });
}
- (IBAction)alipayBtn:(id)sender {
    
    //代理方法
    if ([self.delegate respondsToSelector:@selector(alipayTheBill)]) {
        [self.delegate alipayTheBill];
    }
    
}

@end
